package test;

import java.util.zip.ZipOutputStream;

import junit.framework.TestCase;
import mymap.utils.zip.FolderZiper;

public class ZipTeste extends TestCase {

	String folderIn;
	String fileOut;
	String dirMapa;

	public ZipTeste() {
		folderIn = "src/mapas/mobmap/MobMap/";
		//fileOut = "src/mapas/mobmap/MobMap.jar";
		fileOut = "/mapas/MobMap.jar";
		dirMapa = "src/mapas/1243389520439/";
	}

	public void testZipar() throws Exception {
		
		ZipOutputStream zip = FolderZiper.createZipFolder(folderIn, fileOut);
		zip.setLevel(9);
		FolderZiper.addFilesOfFolder("rsc/mapa", dirMapa, zip);
		zip.flush();
	    zip.close();
		
	}
		
}
